﻿using System.ComponentModel.DataAnnotations;
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace Web.Models.CoreData
{
    /// <summary>
    /// 
    /// </summary>
    [Table("tcompany")]
    public class Company
    {
        /// <summary>
        /// 消息唯一标识
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        [Column("id")]
        public String Id { get; set; }

        /// <summary>
        /// 公司名称
        /// </summary>
        [Column("name")]
        public String Name { get; set; }

        /// <summary>
        /// 联系人名称
        /// </summary>
        [Column("contactname")]
        public String ContactName { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        [Column("phone")]
        public String Phone { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        [Column("email")]
        public String Email { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        [Column("address")]
        public String Address { get; set; }

        /// <summary>
        /// 网址
        /// </summary>
        [Column("website")]
        public String Website { get; set; }

        /// <summary>
        /// logo图片地址
        /// </summary>
        [Column("logo")]
        public String Logo { get; set; }

        /// <summary>
        /// 有效期
        /// </summary>
        [Column("expirationdate")]
        public DateTime? ExpirationDate { get; set; }


        
    }
}
